# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
# Contributor: Marek Kubica <marek@xivilization.net>
# Contributor: Javier ‘Phrodo_00’ Aravena <Phrodo.00@gmail.com>
pkgname=cgdb
pkgver=0.8.0
pkgrel=1
pkgdesc="Curses-based interface to the GNU Debugger"
arch=('loong64' 'x86_64')
url="http://cgdb.github.io/"
license=('GPL')
depends=('readline>=5.1' 'ncurses' 'gdb')
makedepends=('help2man')
source=("$pkgver-$pkgname.tar.gz::https://github.com/cgdb/cgdb/archive/v${pkgver}.tar.gz")
sha512sums=('e2b653db472de2014402dae6d13953ab811526a47ad5d7a05e34cfba09f44d6fea6b19304b9205ff0e2ac9549ffa5818f4282d7c03293b6c0ca9d563f9ae89e1')

build() {
  cd ${pkgname}-${pkgver}
  ./autogen.sh
  ./configure --prefix=/usr
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}/" install
}
